import request from '@/util/request'

export function pageGetDeviceWarn(data) {
  return request({
    url: '/iot/device/warn/pageGet',
    method: 'post',
    data
  })
}

export function pageGetDeviceWarnAll(data) {
  return request({
    url: '/iot/device/warn/pageGetAll',
    method: 'post',
    data
  })
}

export function updateDeviceWarn(data) {
  return request({
    url: '/iot/device/warn/update',
    method: 'post',
    data
  })
}

export function deleteDeviceWarnList(data) {
  return request({
    url: '/iot/device/warn/deleteList',
    method: 'post',
    data
  })
}

export function deleteDeviceWarn(data) {
  return request({
    url: '/iot/device/warn/delete',
    method: 'post',
    data
  })
}

export function listDeviceWarnHistory(data) {
  return request({
    url: '/iot/device/warn/history/list',
    method: 'post',
    data
  })
}

